package com.crazy.crazytransactionservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crazy.crazymodel.model.entity.Transaction;
import com.crazy.crazymodel.model.vo.RedeemVO;
import org.springframework.validation.beanvalidation.SpringValidatorAdapter;

import java.math.BigDecimal;

/**
 * 赎回service
 */
public interface RedeemService extends IService<Transaction> {
    /**
     * 赎回
     * @param customerID
     * @param productID
     * @param share
     * @return
     */
    RedeemVO redeem(int customerID, int productID, BigDecimal share,String bankCardNumber);


    /**
     * 确认赎回
     * @param transactionId
     */
    void confirmRedeem(int transactionId);
}
